﻿using AutoMapper;
using BCDto.Sim.Admin.Admin;
using BCDto.Sim.Admin.AdminOperationRecord;
using BCEntity.Sim.Admin.Admin;
using BCEntity.Sim.Admin.AdminOperationRecord;

namespace BCService.MapperProfiles
{
    /// <summary>
    /// 员工信息
    /// </summary>
    public class AdminProfile : Profile
    {
        public AdminProfile()
        {
            CreateMap<AdminEntity, AdminDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<AdminDto, AdminEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<AdminPutDto, AdminEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<AdminRequestDto, AdminEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();

            CreateMap<AdminOperationRecordDto, AdminOperationRecordEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<AdminOperationRecordEntity, AdminOperationRecordDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            
        }
    }
}
